package testing;

import javax.swing.JFrame;

import logic.English;
import logic.PlayfairCipher;
import vis.PrepChecker;
import vis.TextCheckPanel;

public class Test3 {

	public static void main(String[] args) {
		JFrame frame = new JFrame("Playfair");
		PlayfairCipher pfEn = new PlayfairCipher(new English(),
				"PlayfairExample");
		TextCheckPanel tp = new TextCheckPanel(new PrepChecker(pfEn), "Originalni tekst", "Tekst za šifrovanje");
		frame.add(tp);
		frame.pack();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);

		tp.setText("Hide the gold in the tree stump.");
	}

}
